package rozetka.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by foneox on 06.04.2014.
 */
public class ProductPage extends BasePage{
    private By AddToCartButtonLocator= By.name("topurchases");

    public ProductPage(WebDriver driver) {
        super(driver);
    }

    public CartModalPage addToCart() {
        driver.findElement(AddToCartButtonLocator).click();
        return new CartModalPage(driver);
    }
}
